package com.jishaokang.service;

import com.jishaokang.base.Result;
import com.jishaokang.model.dto.Message;

/**
 * Created by NANA_Final on 2019/6/21.
 */
public interface MessageService {

    Result selectMessageByMessageId(Message message);

    Result selectMessageByReceiverId(Message message);

    Result updateMessageStateByMessageId(Message message);

    Result deleteMessageByMessageId(Message message);

    Result updateMessagesStatesByReceiverId(Message message);

    Result deleteMessagesByReceiverIdAndState(Message message);

    Result selectTotalUnreadMessage(Message message);
}
